package com.sqx.modules.postPush.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.postPush.entity.PostPush;
import com.sqx.modules.resumes.vo.CityVo;
import com.sqx.modules.resumes.vo.LetterCity;
import com.sqx.modules.postPush.vo.PostPushVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fang
 * @date 2022/8/3
 */
@Mapper
public interface PostPushDao extends BaseMapper<PostPush> {

    List<LetterCity> getLetter();

    List<String> getCityList(@Param("letter") String letter, @Param("city") String city);

    List<String> getCountyByCity(@Param("city") String city);

    List<String> getHotCity(Integer limitCount);

    List<CityVo> getCityCounty();




    PostPushVo selectPostPushDetails(@Param("postPushId") Long postPushId, @Param("loginUserId") Long loginUserId);

    IPage<PostPushVo> getAppPostPushList(@Param("pages") Page<PostPushVo> pages, @Param("loginUserId") Long loginUserId, @Param("postPush") PostPushVo postPushVo);

    IPage<PostPushVo> getPostPushList(@Param("pages") Page<PostPushVo> pages, @Param("postPushVo") PostPushVo postPushVo, @Param("startTime") String startTime, @Param("endTime") String endTime);

    int getPostPushData(@Param("time") String time, @Param("flag") String flag, @Param("type") Integer type, @Param("status") Integer status);
}
